package cn.caipengbo.service.impl;

import cn.caipengbo.domain.User;
import cn.caipengbo.service.Service;

/**
 * Created by Myth on 2/9/2017.
 */
public class ServiceImpl implements Service {
    //调用Dao
    public User login(User user) {
        if ("username".equals(user.getUsername()) && "password".equals(user.getPassword())) {
            return user;
        } else {
            return null;
        }
    }
}
